Page({
  data: {
    poemList: [
      { id: 1, title: "静夜思", content: "床前明月光，疑是地上霜。", audioUrl: "/audios/poem1.mp3" },
      { id: 2, title: "春晓", content: "春眠不觉晓，处处闻啼鸟。", audioUrl: "/audios/poem2.mp3" }
    ]
  },
  playAudio(e) {
    const audioUrl = e.currentTarget.dataset.url;
    const audio = wx.createInnerAudioContext();
    audio.src = audioUrl;
    audio.play();
  }
});